<%@ page import="cn.ixinjiu.libraryMangement.entity.BookInfo" %>
<%@ page import="cn.ixinjiu.libraryMangement.service.impl.BookInfoServiceImpl" %>
<%@ page import="cn.ixinjiu.libraryMangement.service.IBookInfoService" %>
<%@ page import="cn.ixinjiu.libraryMangement.service.impl.AnnoServiceImpl" %>
<%@ page import="cn.ixinjiu.libraryMangement.service.IAnnoService" %>
<%@ page import="cn.ixinjiu.libraryMangement.entity.Anno" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/6/28
  Time: 17:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>公告详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
    <script src="/static/layui/layui.js" charset="utf-8"></script>
</head>
<body>
<%
    IAnnoService annoService = new AnnoServiceImpl();
    Anno anno = annoService.getAnnoById(Integer.parseInt(request.getParameter("id")));

    // url
    StringBuffer requestURL = request.getRequestURL();
    String[] split = requestURL.toString().split("jsp");
    String baseURL = split[0]; // http://localhost:8081/
%>

<form class="layui-form   layui-form-pane" action="">
    <%-- 隐藏id --%>
    <input type="id" name="id" value=<%=anno.getId() %> class="layui-hide">
    <!-- 公告内容 -->
    <div class="layui-form-item">
        <label class="layui-form-label">公告内容</label>
        <div class="layui-input-block">
            <textarea name="" required lay-verify="required" placeholder="请输入" class="layui-textarea" disabled>
                <%=anno.getContent() %>
            </textarea>
        </div>
    </div>
</form>

</body>
</html>
